﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema
    elementFormDefault="unqualified"
    targetNamespace="http://www.king.com/bar"
    xmlns:tns="http://www.king.com/bar"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
  <xs:complexType name="bar-type">
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
      <xs:element name="barLeaf" type="xs:string" />
    </xs:sequence>
  </xs:complexType>

  <xs:element name="elem">
    <xs:complexType>
      <xs:attribute name="type" type="xs:string"/>
    </xs:complexType>
  </xs:element>

  <xs:attributeGroup name="barType">
    <xs:attribute name="type" type="xs:string" form="qualified"/>
  </xs:attributeGroup>

  <xs:attributeGroup name="barType2">
    <xs:attribute name="type2" type="xs:string" form="unqualified"/>
  </xs:attributeGroup>
  
  <xs:group name="group">
    <xs:sequence>
      <xs:element name="member" type="xs:string"/>
    </xs:sequence>
  </xs:group>

</xs:schema>

